mainApp.service('evaluateListService', ['$resource',function ($resource){
    
    //查询用户订单信息
    this.getOrderById = function(orderId,success,error){
        return $resource(baseUrl+"/mapi/morder/getOrder/"+orderId).get(success,error);
    };
    //查询商品评价信息
    this.getEvaluate = function(orderId,goodsId,success,error){
        return $resource(baseUrl+"/mapi/mevaluate/getEvaluate/"+orderId+"/"+goodsId).get(success,error);
    };
   //添加评价信息
   this.addEvaluate=function(param,success,error){
        return $resource(baseUrl+"/mapi/mevaluate/add").save(param,success,error);
    };
}]);

